﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020014E3 RID: 5347
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class UseItemScRsp : IMessage<UseItemScRsp>, IMessage, IEquatable<UseItemScRsp>, IDeepCloneable<UseItemScRsp>, IBufferMessage
	{
		// Token: 0x17004353 RID: 17235
		// (get) Token: 0x0600EF2F RID: 61231 RVA: 0x0027EC77 File Offset: 0x0027CE77
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<UseItemScRsp> Parser
		{
			get
			{
				return UseItemScRsp._parser;
			}
		}

		// Token: 0x17004354 RID: 17236
		// (get) Token: 0x0600EF30 RID: 61232 RVA: 0x0027EC7E File Offset: 0x0027CE7E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return UseItemScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17004355 RID: 17237
		// (get) Token: 0x0600EF31 RID: 61233 RVA: 0x0027EC90 File Offset: 0x0027CE90
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return UseItemScRsp.Descriptor;
			}
		}

		// Token: 0x0600EF32 RID: 61234 RVA: 0x0027EC97 File Offset: 0x0027CE97
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UseItemScRsp()
		{
		}

		// Token: 0x0600EF33 RID: 61235 RVA: 0x0027ECA0 File Offset: 0x0027CEA0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UseItemScRsp(UseItemScRsp other) : this()
		{
			this.returnData_ = ((other.returnData_ != null) ? other.returnData_.Clone() : null);
			this.formulaId_ = other.formulaId_;
			this.gAAIMJLKDMB_ = other.gAAIMJLKDMB_;
			this.useItemCount_ = other.useItemCount_;
			this.useItemId_ = other.useItemId_;
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600EF34 RID: 61236 RVA: 0x0027ED1C File Offset: 0x0027CF1C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public UseItemScRsp Clone()
		{
			return new UseItemScRsp(this);
		}

		// Token: 0x17004356 RID: 17238
		// (get) Token: 0x0600EF35 RID: 61237 RVA: 0x0027ED24 File Offset: 0x0027CF24
		// (set) Token: 0x0600EF36 RID: 61238 RVA: 0x0027ED2C File Offset: 0x0027CF2C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ItemList ReturnData
		{
			get
			{
				return this.returnData_;
			}
			set
			{
				this.returnData_ = value;
			}
		}

		// Token: 0x17004357 RID: 17239
		// (get) Token: 0x0600EF37 RID: 61239 RVA: 0x0027ED35 File Offset: 0x0027CF35
		// (set) Token: 0x0600EF38 RID: 61240 RVA: 0x0027ED3D File Offset: 0x0027CF3D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint FormulaId
		{
			get
			{
				return this.formulaId_;
			}
			set
			{
				this.formulaId_ = value;
			}
		}

		// Token: 0x17004358 RID: 17240
		// (get) Token: 0x0600EF39 RID: 61241 RVA: 0x0027ED46 File Offset: 0x0027CF46
		// (set) Token: 0x0600EF3A RID: 61242 RVA: 0x0027ED4E File Offset: 0x0027CF4E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ulong GAAIMJLKDMB
		{
			get
			{
				return this.gAAIMJLKDMB_;
			}
			set
			{
				this.gAAIMJLKDMB_ = value;
			}
		}

		// Token: 0x17004359 RID: 17241
		// (get) Token: 0x0600EF3B RID: 61243 RVA: 0x0027ED57 File Offset: 0x0027CF57
		// (set) Token: 0x0600EF3C RID: 61244 RVA: 0x0027ED5F File Offset: 0x0027CF5F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint UseItemCount
		{
			get
			{
				return this.useItemCount_;
			}
			set
			{
				this.useItemCount_ = value;
			}
		}

		// Token: 0x1700435A RID: 17242
		// (get) Token: 0x0600EF3D RID: 61245 RVA: 0x0027ED68 File Offset: 0x0027CF68
		// (set) Token: 0x0600EF3E RID: 61246 RVA: 0x0027ED70 File Offset: 0x0027CF70
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint UseItemId
		{
			get
			{
				return this.useItemId_;
			}
			set
			{
				this.useItemId_ = value;
			}
		}

		// Token: 0x1700435B RID: 17243
		// (get) Token: 0x0600EF3F RID: 61247 RVA: 0x0027ED79 File Offset: 0x0027CF79
		// (set) Token: 0x0600EF40 RID: 61248 RVA: 0x0027ED81 File Offset: 0x0027CF81
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x0600EF41 RID: 61249 RVA: 0x0027ED8A File Offset: 0x0027CF8A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as UseItemScRsp);
		}

		// Token: 0x0600EF42 RID: 61250 RVA: 0x0027ED98 File Offset: 0x0027CF98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(UseItemScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.ReturnData, other.ReturnData) && this.FormulaId == other.FormulaId && this.GAAIMJLKDMB == other.GAAIMJLKDMB && this.UseItemCount == other.UseItemCount && this.UseItemId == other.UseItemId && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600EF43 RID: 61251 RVA: 0x0027EE28 File Offset: 0x0027D028
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.returnData_ != null)
			{
				num ^= this.ReturnData.GetHashCode();
			}
			if (this.FormulaId != 0U)
			{
				num ^= this.FormulaId.GetHashCode();
			}
			if (this.GAAIMJLKDMB != 0UL)
			{
				num ^= this.GAAIMJLKDMB.GetHashCode();
			}
			if (this.UseItemCount != 0U)
			{
				num ^= this.UseItemCount.GetHashCode();
			}
			if (this.UseItemId != 0U)
			{
				num ^= this.UseItemId.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600EF44 RID: 61252 RVA: 0x0027EEE1 File Offset: 0x0027D0E1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600EF45 RID: 61253 RVA: 0x0027EEE9 File Offset: 0x0027D0E9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600EF46 RID: 61254 RVA: 0x0027EEF4 File Offset: 0x0027D0F4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Retcode);
			}
			if (this.returnData_ != null)
			{
				output.WriteRawTag(58);
				output.WriteMessage(this.ReturnData);
			}
			if (this.GAAIMJLKDMB != 0UL)
			{
				output.WriteRawTag(72);
				output.WriteUInt64(this.GAAIMJLKDMB);
			}
			if (this.UseItemId != 0U)
			{
				output.WriteRawTag(88);
				output.WriteUInt32(this.UseItemId);
			}
			if (this.UseItemCount != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.UseItemCount);
			}
			if (this.FormulaId != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.FormulaId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600EF47 RID: 61255 RVA: 0x0027EFC0 File Offset: 0x0027D1C0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.returnData_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ReturnData);
			}
			if (this.FormulaId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.FormulaId);
			}
			if (this.GAAIMJLKDMB != 0UL)
			{
				num += 1 + CodedOutputStream.ComputeUInt64Size(this.GAAIMJLKDMB);
			}
			if (this.UseItemCount != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.UseItemCount);
			}
			if (this.UseItemId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.UseItemId);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600EF48 RID: 61256 RVA: 0x0027F078 File Offset: 0x0027D278
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(UseItemScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.returnData_ != null)
			{
				if (this.returnData_ == null)
				{
					this.ReturnData = new ItemList();
				}
				this.ReturnData.MergeFrom(other.ReturnData);
			}
			if (other.FormulaId != 0U)
			{
				this.FormulaId = other.FormulaId;
			}
			if (other.GAAIMJLKDMB != 0UL)
			{
				this.GAAIMJLKDMB = other.GAAIMJLKDMB;
			}
			if (other.UseItemCount != 0U)
			{
				this.UseItemCount = other.UseItemCount;
			}
			if (other.UseItemId != 0U)
			{
				this.UseItemId = other.UseItemId;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600EF49 RID: 61257 RVA: 0x0027F130 File Offset: 0x0027D330
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600EF4A RID: 61258 RVA: 0x0027F13C File Offset: 0x0027D33C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 72U)
				{
					if (num == 48U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 58U)
					{
						if (this.returnData_ == null)
						{
							this.ReturnData = new ItemList();
						}
						input.ReadMessage(this.ReturnData);
						continue;
					}
					if (num == 72U)
					{
						this.GAAIMJLKDMB = input.ReadUInt64();
						continue;
					}
				}
				else
				{
					if (num == 88U)
					{
						this.UseItemId = input.ReadUInt32();
						continue;
					}
					if (num == 104U)
					{
						this.UseItemCount = input.ReadUInt32();
						continue;
					}
					if (num == 120U)
					{
						this.FormulaId = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04005E83 RID: 24195
		private static readonly MessageParser<UseItemScRsp> _parser = new MessageParser<UseItemScRsp>(() => new UseItemScRsp());

		// Token: 0x04005E84 RID: 24196
		private UnknownFieldSet _unknownFields;

		// Token: 0x04005E85 RID: 24197
		public const int ReturnDataFieldNumber = 7;

		// Token: 0x04005E86 RID: 24198
		private ItemList returnData_;

		// Token: 0x04005E87 RID: 24199
		public const int FormulaIdFieldNumber = 15;

		// Token: 0x04005E88 RID: 24200
		private uint formulaId_;

		// Token: 0x04005E89 RID: 24201
		public const int GAAIMJLKDMBFieldNumber = 9;

		// Token: 0x04005E8A RID: 24202
		private ulong gAAIMJLKDMB_;

		// Token: 0x04005E8B RID: 24203
		public const int UseItemCountFieldNumber = 13;

		// Token: 0x04005E8C RID: 24204
		private uint useItemCount_;

		// Token: 0x04005E8D RID: 24205
		public const int UseItemIdFieldNumber = 11;

		// Token: 0x04005E8E RID: 24206
		private uint useItemId_;

		// Token: 0x04005E8F RID: 24207
		public const int RetcodeFieldNumber = 6;

		// Token: 0x04005E90 RID: 24208
		private uint retcode_;
	}
}
